package com.gateio.flutter.lib_core.model

import androidx.annotation.Keep

/**
 * Author: Shper
 * Created: 2023/7/2
 */
@Keep
class GTGlobalConfigEventModel private constructor() {

    var darkMode: Boolean? = null // 浅色深色模式切换
    var language: String? = null // 语言切换
    var hzldMode: Boolean? = null // 红涨绿跌切换
    var timezone: String? = null  // 涨跌幅时间切换
    var exchangeRate: Map<String, Double>? = null  // 汇率切换
    var hiddenMoney: Boolean? = null  // 是否隐藏资金显示

    companion object {
        @JvmStatic
        fun changeDarkMode(darkMode: Boolean): GTGlobalConfigEventModel {
            return GTGlobalConfigEventModel().apply {
                this.darkMode = darkMode
            }
        }

        @JvmStatic
        fun changeLanguage(language: String): GTGlobalConfigEventModel {
            return GTGlobalConfigEventModel().apply {
                this.language = language
            }
        }

        @JvmStatic
        fun changeHZLDMode(hzldMode: Boolean): GTGlobalConfigEventModel {
            return GTGlobalConfigEventModel().apply {
                this.hzldMode = hzldMode
            }
        }

        @JvmStatic
        fun changeTimezone(timezone: String): GTGlobalConfigEventModel {
            return GTGlobalConfigEventModel().apply {
                this.timezone = timezone
            }
        }

        @JvmStatic
        fun changeExchangeRate(exchangeRate:  Map<String, Double>): GTGlobalConfigEventModel {
            return GTGlobalConfigEventModel().apply {
                this.exchangeRate = exchangeRate
            }
        }

        @JvmStatic
        fun changeHiddenMoney(hiddenMoney: Boolean): GTGlobalConfigEventModel {
            return GTGlobalConfigEventModel().apply {
                this.hiddenMoney = hiddenMoney
            }
        }
    }

}